import Vue from 'vue'
import router from './util/routerAll'
import App from './App';

import CKEditor from 'ckeditor4-vue';
Vue.use(CKEditor);

import Antd from 'ant-design-vue';
import 'ant-design-vue/dist/antd.less';
import { red, volcano, gold, yellow, lime, green, cyan, blue, geekblue, purple, magenta, grey } from '@ant-design/colors';
Vue.use(Antd);

import util from './util/util.js'
Vue.prototype.$util = util;

import count_to from '../src/components/count_to'
Vue.component('count-to',count_to)

import myCol from '../src/components/myCol'
Vue.component('m-col',myCol)

import myRow from '../src/components/myRow'
Vue.component('m-row',myRow)

import myForm from '../src/components/myForm'
Vue.component('m-form',myForm)

import myColVertical from '../src/components/myColVertical'
Vue.component('m-col-v',myColVertical)

import myFormVertical from '../src/components/myFormVertical'
Vue.component('m-form-v',myFormVertical)

import myRowMuti from '../src/components/myRowMuti'
Vue.component('m-row-muti',myRowMuti)

import myFormItem from '../src/components/myFormItem'
Vue.component('m-form-item',myFormItem)

import common_import from '../src/views/importCommonPage'
Vue.component('common-import',common_import)

import Loading from 'vue-loading-overlay';
import 'vue-loading-overlay/dist/vue-loading.css';
Vue.use(Loading);

import infiniteScroll from 'vue-infinite-scroll'
Vue.use(infiniteScroll)

import ECharts from 'vue-echarts';
Vue.component('v-chart',ECharts);

// import echarts from "echarts";
// Vue.prototype.$echarts = echarts;

import { Icon } from 'ant-design-vue';
const iconFont = Icon.createFromIconfontCN({
  // scriptUrl: '//at.alicdn.com/t/c/font_3161241_caamac23qpq.js',
  scriptUrl: '//at.alicdn.com/t/c/font_3161241_cqt5mao8pso.js',
});
Vue.component('icon-font', iconFont)

import animated from 'animate.css'
Vue.use(animated)

import VueViewer from 'v-viewer'
import 'viewerjs/dist/viewer.css'
Vue.use(VueViewer)
VueViewer.setDefaults({
  zIndex: 100,

  toolbar: {
    prev:1,
    next:1
  }
})

import Video from 'video.js'
import 'video.js/dist/video-js.css'
Vue.prototype.$video = Video //引入Video播放器


Vue.config.productionTip = false
new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
